// Copyright Epic Games, Inc. All Rights Reserved.


#include "class02GameModeBase.h"
#include <chrono>
#include <iomanip>
#include <sstream>
#include <iostream>

void Aclass02GameModeBase::InitGame(
        const FString& MapName, const FString& Options, FString& ErrorMessage)
{
    std::time_t t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
    std::stringstream ss; ss << std::put_time(std::localtime(&t), "%F %T");

    UE_LOG(LogTemp, Warning, TEXT("Start game %s at %s"), *MapName, UTF8_TO_TCHAR(ss.str().c_str()));
    AGameModeBase::InitGame(MapName, Options, ErrorMessage);
}
